<template>
  <div class="wrapper">
    <header-view></header-view>
    <div class="banner">
      <img src="~img/bg3.jpg" alt="" />
    </div>
    <div class="main">
      <img src="~img/contact-icon4.png" alt="" class="label" />
      <ul>
        <li>
          <img src="~img/contact-icon1.png" alt="" />
          <p class="t">电话</p>
          <p v-for="(mobile, index) of mobiles" :key="index">{{ mobile }}</p>
        </li>
        <li>
          <img src="~img/contact-icon2.png" alt="" />
          <p class="t">电子邮件</p>
          <p>{{ commonSysObj[2].value }}</p>
        </li>
        <li>
          <img src="~img/contact-icon3.png" alt="" />
          <p class="t">地址</p>
          <p>{{ commonSysObj[3].value }}</p>
        </li>
      </ul>
    </div>
    <div class="banner banner2">
      <img src="~img/bg4.jpg" alt="" />
    </div>
    <div class="banner banner3">
      <img src="~img/bg5.jpg" alt="" />
      <div class="marker">
        <div>
          <p>电话：{{ commonSysObj[1].value }}</p>
          <p>地址：{{ commonSysObj[3].value }}</p>
        </div>
      </div>
    </div>
    <bottom-view></bottom-view>
  </div>
</template>

<script>
import headerView from '@/components/headerView'
import bottomView from '@/components/bottomView'
import { mapGetters } from 'vuex'
export default {
  name: 'contactUs',
  components: {
    headerView,
    bottomView
  },
  computed: {
    ...mapGetters(['commonSysObj'])
  },
  data() {
    return {
      mobiles: []
    }
  },
  mounted() {
    this.mobiles = this.commonSysObj[1].value.split(' ')
  }
}
</script>

<style lang="less" scoped>
.wrapper {
  background: #fff;
}
.banner {
  height: 550px;
  width: 100%;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  &.banner2 {
    height: 296px;
  }
  &.banner3 {
    height: 606px;
    position: relative;
  }
}
.marker {
  width: 335px;
  height: 316px;
  position: absolute;
  background: url(../assets/marker-bg.png) center center no-repeat;
  background-size: 100% 100%;
  top: 106px;
  left: 50%;
  transform: translateX(-20%);
  div {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 20px;
    p {
      font-size: 15px;
      color: #080808;
      line-height: 20px;
      margin-top: 10px;
    }
  }
}
.main {
  width: 1264px;
  height: 739px;
  margin: 0 auto;
  padding-top: 160px;
  .label {
    width: 384px;
    height: 91px;
  }
  ul {
    margin-top: 107px;
    overflow: hidden;
    text-align: center;
    font-size: 20px;
    color: @base-color;
    display: flex;
    li {
      flex: 1;
      // float: left;
      // width: 33.33%;
      img {
        width: 90px;
        height: 90px;
        margin-bottom: 31px;
      }
      .t {
        margin-bottom: 15px;
      }
      p {
        line-height: 32px;
        // &:last-child {
        //   margin-top: 15px;
        // }
      }
    }
  }
}
</style>
